package com.fastwire.carriere.service.exception;

import javax.xml.ws.WebFault;

@WebFault(name = "ServiceException", targetNamespace = "http://serviceexception.fastwire.com")
public class ServiceException extends Exception {
	private final FaultInfo faultInfo;

	public ServiceException(String message, FaultInfo faultInfo) {
		super(message);
		this.faultInfo = faultInfo;
	}

	public ServiceException(String message, Throwable cause, FaultInfo faultInfo) {
		super(message, cause);
		this.faultInfo = faultInfo;
	}

	public FaultInfo getFaultInfo() {
		return faultInfo;
	}

}
